import {
  goodsList,
} from "@/api/commodityfiles";

export const tableConfig = {
  hasPage: true,
  request: (params) => {
    return goodsList(params)
  },
  dataParse: (res) => {
    const resData = res.data.data
    const data = {
      list: resData.rows,
      total: resData.total
    }
    return data
  },
  columns: [
    {
      prop: 'name',
      label: '商品名称',
      width: '300px',
    },
    {
      prop: 'goodsSkuS',
      label: '商品规格',
      isSlot: true,
    },
  ]
}